Skip to content

Release v3.7.0#62

Merged
cdnsteve merged 8 commits intomainfrom
develop
Jan 21, 2026
Merged

Release v3.7.0#62
cdnsteve merged 8 commits intomainfrom
develop

Conversation

@cdnsteve
Copy link
Member

Release v3.7.0 - OpenCode Integration

New Features

  • One-command OpenCode setup: sugar opencode setup auto-configures OpenCode with Sugar MCP servers

    • Auto-detects OpenCode config location
    • Supports --dry-run, --yes, --no-memory, --no-tasks flags
    • Handles JSON and JSONC config files
  • Memory slash commands for OpenCode:

    • /sugar-remember - Store decisions, preferences, error patterns
    • /sugar-recall - Search memory for relevant context
    • /sugar-context - Load full project context at session start
  • Improved error messages: Connection failures now show helpful messages instead of misleading "health check failed"

Bug Fixes

  • Fixed JSONC parser incorrectly treating URLs with :// as comments
  • Fixed silent connection error handling in OpenCode client
  • Fixed black formatting issues across multiple files
  • Fixed OpenCode setup tests for Windows compatibility

CI/CD

  • Pinned black version for consistent formatting across platforms

Testing

  • Added 16 new tests for OpenCode setup command and client error handling

Full Changelog: v3.6.0...develop

- Add `sugar opencode setup` command for one-command OpenCode configuration
  - Auto-detects OpenCode config file location
  - Adds sugar-tasks and sugar-memory MCP servers
  - Supports --dry-run, --yes, --no-memory, --no-tasks flags
  - Parses JSON/JSONC safely, preserves existing config

- Fix misleading error messages in OpenCode client
  - Connection errors now clearly indicate server is unreachable
  - No longer says "server responded" when connection fails

- Add memory slash commands to OpenCode plugin
  - /sugar-remember: Store learnings, decisions, preferences
  - /sugar-recall: Search memory for relevant context
  - /sugar-context: Load full project context at session start

- Update documentation
  - README.md: Simplified OpenCode setup instructions
  - docs/user/opencode.md: Full setup command documentation
- Add 11 tests for `sugar opencode setup` command covering:
  - Config file discovery
  - Dry-run mode
  - MCP server addition
  - Existing config preservation
  - Idempotent behavior
  - Error handling for missing/malformed config
  - JSONC parsing
  - --no-memory and --no-tasks flags
  - Custom config path

- Add 5 tests for OpenCodeClient error handling:
  - health_check success/failure/connection error
  - notify success/connection error

- Update CHANGELOG for v3.7.0 with new features
* style: Fix black formatting issues

* ci: Pin black version to ensure consistent formatting

* fix: Update OpenCode setup tests to use --config flag for Windows compatibility
@cdnsteve cdnsteve merged commit eecc388 into main Jan 21, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant